package com.dk.hi.core.actor.inventory;

import com.dk.hi.core.I18n;

/**
 * Abstract class representing an inventory item
 */
public abstract class Item {
	/**
	 * The bundle entry of the item's name
	 */
	private final String name;

	/**
	 * @param name
	 *            - the items bundle key without type prefix
	 */
	public Item(String name) {
		this.name = "item." + name;
	}

	/**
	 * @return the translated name of the item
	 */
	public String getName() {
		return I18n.get(this.name);
	}
}
